<?php
class table_cacheService extends commonService{
    
    public function __construct(){
        parent::__construct();
		$this->virtual_pjt_admin=load_pjt(0);
		$this->virtual_pjt_front=load_pjt(1);
    }
	public function admin_part(){
		$dir=$this->virtual_pjt_admin['PROJECT_PATH'].'runtime/table_cache/';
		$files=scandir($dir);
		foreach($files as $file){
			if($file=='.' or $file=='..') continue;
			unlink($dir.$file);
		}
		return true;
	}
	public function front_part(){
		$dir=$this->virtual_pjt_front['PROJECT_PATH'].'runtime/table_cache/';
		$files=scandir($dir);
		foreach($files as $file){
			if($file=='.' or $file=='..') continue;
			unlink($dir.$file);
		}
		return true;
	}
	
//
}